/** 表格表头 */
export const tableColumns = (t: (m:string) => string) => [
  {
    prop: 'id',
    type: 'selection',
    label: t('table.selection'),
    width: 55,
  },
  {
    prop: 'id',
    label: 'ID',
    minWidth: 100,
  },
  {
    prop: 'face',
    label: '用户',
    minWidth: 120,
  },
  {
    prop: 'content',
    label: '内容',
    minWidth: 120,
  },
  {
    prop: 'addtime',
    label: '时间',
    minWidth: 180,
  }
];

/** 表格搜索表单 */
export const tableSearchFormItems = (t: (m:string) => string) => [
  {
    attrs: {
      label: '用户昵称',
      prop: 'username',
    },
    value: '',
    component: {
      is: 'el-input',
      props: {
        placeholder: '请输入用户昵称',
      },
    },
  },
  {
    attrs: {
      label: '用户ID',
      prop: 'uid',
    },
    value: '',
    component: {
      is: 'el-input',
      props: {
        placeholder: '请输入用户ID',
      },
    },
  }
];
